package com.cmb.lk50.pojo;

import com.google.gson.annotations.SerializedName;

public class AccessInfo implements AbstractLog {

    @SerializedName("sequence_id")
    private Long sequenceId;

    @SerializedName("host_name")
    private String hostName;

    @SerializedName("host_ip")
    private String hostIp;

    @SerializedName("host_port")
    private Integer hostPort;

    private String method;

    private String path;

    @SerializedName("invoke_ip")
    private String invokeIp;

    @SerializedName("invoke_port")
    private Integer invokePort;

    @SerializedName("query_param")
    private String queryParam;

    private String status;

    @SerializedName("response_content")
    private String responseContent;

    @SerializedName("cost_time")
    private Long costTime;

    @SerializedName("log_time")
    private String logTime;

    @Override
    public String toString() {
        return "{" +
          "sequenceId=" + sequenceId +
          ", hostName='" + hostName + '\'' +
          ", hostIp='" + hostIp + '\'' +
          ", hostPort=" + hostPort +
          ", method='" + method + '\'' +
          ", path='" + path + '\'' +
          ", invokeIp='" + invokeIp + '\'' +
          ", invokePort=" + invokePort +
          ", queryParam='" + queryParam + '\'' +
          ", status='" + status + '\'' +
          ", responseContent='" + responseContent + '\'' +
          ", costTime=" + costTime +
          ", logTime=" + logTime +
          '}';
    }

    public Long getSequenceId() {
        return sequenceId;
    }

    public void setSequenceId(Long sequenceId) {
        this.sequenceId = sequenceId;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName == null ? null : hostName.trim();
    }

    public String getHostIp() {
        return hostIp;
    }

    public void setHostIp(String hostIp) {
        this.hostIp = hostIp == null ? null : hostIp.trim();
    }

    public Integer getHostPort() {
        return hostPort;
    }

    public void setHostPort(Integer hostPort) {
        this.hostPort = hostPort;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method == null ? null : method.trim();
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path == null ? null : path.trim();
    }

    public String getInvokeIp() {
        return invokeIp;
    }

    public void setInvokeIp(String invokeIp) {
        this.invokeIp = invokeIp == null ? null : invokeIp.trim();
    }

    public Integer getInvokePort() {
        return invokePort;
    }

    public void setInvokePort(Integer invokePort) {
        this.invokePort = invokePort;
    }

    public String getQueryParam() {
        return queryParam;
    }

    public void setQueryParam(String queryParam) {
        this.queryParam = queryParam == null ? null : queryParam.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Long getCostTime() {
        return costTime;
    }

    public void setCostTime(Long costTime) {
        this.costTime = costTime;
    }

    public String getLogTime() {
        return logTime;
    }

    public void setLogTime(String logTime) {
        this.logTime = logTime;
    }

    public String getResponseContent() {
        return responseContent;
    }

    public void setResponseContent(String responseContent) {
        this.responseContent = responseContent;
    }

    @Override
    public AbstractLog convert(AccessInfo accessInfo) {
        return accessInfo;
    }
}